package com.nytd.demo.mapper;

import com.nytd.demo.entity.UserInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
@Mapper
public interface UserInfoMapper {

    @Select("select user_name, `password` from user_info where delete_flag = 0 and user_name = #{name}")
    UserInfo selectByName(String name);
}